package com.cloudkinto.vo.product;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author long
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ProductCategoryTree {

    @ApiModelProperty(value = "id")
    private Long categoryId;
    @ApiModelProperty(value = "名称")
    private String categoryName;
    @Builder.Default
    @ApiModelProperty(value = "父id")
    private Long parentId = -1L;
    @ApiModelProperty(value = "fullPath")
    private String fullPath;
    @ApiModelProperty(value = "fullPathName")
    private String fullPathName;
    @ApiModelProperty(value = "层级")
    private Integer tier;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "子节点")
    private List<ProductCategoryTree> children;

}
